Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix KeyError when error happens in library #259

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

DanielSchiavini
Copy link
Collaborator

Fixes #252

What I did

  • Fixed KeyError

How I did it

  • By ignoring the debug frames of library errors

How to verify it

  • Test is included

Description for the changelog

N/A

Cute Animal Picture

image

@@ -651,7 +651,11 @@ def debug_frame(self, computation=None):
# TODO: figure out why fn is None.
return None

frame_info = self.compiler_data.function_signatures[fn.name]._ir_info.frame_info
signatures = self.compiler_data.function_signatures
if fn.name not in signatures:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charles-cooper is there an easy way to get the signatures of imported modules or to get the errored module from the ast node?

@charles-cooper charles-cooper merged commit 095ad11 into vyperlang:master Jul 29, 2024
8 of 9 checks passed
@DanielSchiavini DanielSchiavini deleted the revert-in-lib branch July 31, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boa.reverts() fails on assertion failure in a nested module
2 participants